package at.hn.hockeynews;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ProgressBar;

public class MainActivity extends Activity {

	private Button exit;
	private ProgressBar pgb;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
       
        //functionality for the exit button
       exit = (Button) findViewById(R.id.exitb);
       exit.setOnClickListener(
    		   new OnClickListener(){

				public void onClick(View v) {
	    			//  Intent i1 = new Intent(MainActivity.this,MenuActivity.class);
	    			 // MainActivity.this.startActivity(i1);
					
				}  
    		   });
       
       //
       pgb = (ProgressBar) findViewById(R.id.pgb1);
       /*for(int i = 0; i < 1000; i++)
       {
    		   if(i == 999)
    		   {*/

   
       
       
        
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
    
    
}


